package com.levy.contronller.javase.designModel.strategy;

/**
 *
 * 针对多种算法实现的时候 使用策略模式
 * Created by levy on 2018/7/21.
 */
public class MainClass {

    public static void main(String[] args) {
        Strategy strategy = new MD5();
        strategy.encrypt();

        Context context = new Context(new MD5());
        context.encrypt();



    }



}
